import {request} from "./request"

//登录
export const getLogin=(model)=>{
	let data=request('login',{
		method:'post',
		data:model,
	})
	return data
}

//注册
export const getReg=(model)=>{
	let data=request('reg',{
		method:'post',
		data:model,
	})
	return data
}

//退出登录
export const getLayout=()=>{
	let data=request('logout',{
		method:'post'
	})
	return data
}